package org.skywork.top.core.flow.property;


import lombok.Data;
import org.flowable.common.engine.impl.history.HistoryLevel;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "sky.flow")
public class FlowProperty {

    private Flowable flowable;

    @Data
    public static class Flowable{

        // 自动更新表结构
        private String databaseSchemaUpdate = "true";

        // 启用异步执行
        private Boolean asyncExecutorActivate = false;

        // 失败重试次数
        private Integer asyncExecutorNumberOfRetries = 3;

        // 历史级别
        private HistoryLevel historyLevel = HistoryLevel.AUDIT;
    }
}
